package com.jz.algorithm.LinkedList;

/**
 * @ClassName : Node
 * @Description : 节点
 * @Author : becky
 * @Date: 2021/8/28  10:15
 */

public class Node<T> {
    T data;
    Node next;

    public Node() {
    }

    public Node(T data, Node next) {
        this.data = data;
        this.next = next;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }
}
